package cn.wolfcode.web.service;

import cn.wolfcode.web.domain.Department;
import cn.wolfcode.web.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDepartmentService {
    void delete(Long id);

    void  save(Department department);

    Department get(Long id);

    List<Department> listAll();

    void update(Department department);
//    不需要这个方法了,有分页插件代替了.等明天上完.可以删除它
//    PageInfo query(QueryObject qo);

    PageInfo<Department> query(QueryObject qo);


}